//
//  MusicDetailTableViewCell.m
//  哎游
//
//  Created by 康守帅 on 15-1-6.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MusicDetailTableViewCell.h"
#import "macro.h"

@implementation MusicDetailTableViewCell

- (void)dealloc
{
    [_title release];
    [_author release];
    [_downLoad release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleBlue;
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH - 30, 35)];
        _title.backgroundColor = [UIColor clearColor];
        _title.font = [UIFont systemFontOfSize:15];
        _title.adjustsFontSizeToFitWidth = YES;
        [self addSubview:_title];
        [_title release];
        
        self.author = [[UILabel alloc] initWithFrame:CGRectMake(10, 40, SCREEN_WIDTH - 30, 15)];
        _author.backgroundColor = [UIColor clearColor];
        _author.font = [UIFont systemFontOfSize:12];
        [self addSubview:_author];
        [_author release];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
